package com.kgc.polym.demo1;

public class Test {
    public static void main(String[] args) {
        Pet pet = new Dog("欧欧",100,60,40,"雪纳瑞");
        pet.showDetails();

        System.out.println("----------------------------------------------------------");

        pet = new Penguin("落落",100,90,80,"Q仔");
        pet.showDetails();
    }
}
